<%@ page language="java" pageEncoding="UTF-8" contentType="text/html; charset=UTF-8" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="zh-CN" lang="zh-CN">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<title>提成汇总-产品</title>
<link type="text/css" rel="stylesheet" href="/style/sx.css" />
<script type="text/javascript" src="/tool/jquery/jquery.min.js"></script>
<script type="text/javascript" src="/js/sx.js"></script>
<style type="text/css">
h3{background:#ccc;padding-left:12px;}
.tab_b{border-left:1px solid #8CCD8C;border-top:1px solid #8CCD8C;border-collapse: collapse;font-size:14px;width:800px;text-align:left}
.tab_b td,.tab_b th{border-bottom:1px solid #8CCD8C;border-right:1px solid #8CCD8C;padding-left:10px;line-height:21px;}
</style>
</head>
<body>
<div class="wrap_width">
<h3 align="center">${s.timeFrom} 至 ${s.timeTo} 销售提成汇总</h3>
<ul class="tab2 fclear">
	<li><i class="r"></i><i class="l"></i><span><a href="${pageContext.request.contextPath}/report?_method=paymentSummary&type=1&timeFrom=${s.timeFrom}&timeTo=${s.timeTo}">业务员</a></span></li>
	<li><i class="r"></i><i class="l"></i><span><a href="${pageContext.request.contextPath}/report?_method=paymentSummary&type=2&timeFrom=${s.timeFrom}&timeTo=${s.timeTo}">客户</a></span></li>
	<li class="selected"><i class="r"></i><i class="l"></i><span>产品</span></li>
</ul>
<!-- 产品 -->
<div class="tab2Txt" style="display:block;">
<p align="center"><a href="${pageContext.request.contextPath}/report?_method=excelPaymentSummary&type=3&timeFrom=${s.timeFrom}&timeTo=${s.timeTo}&fileName=chanpin"><font color="blue">导出数据到Excel表中</font></a></p>
<table class="tab_b" align="center">
<thead>
<th>产品ID</th>
<th width="20%">产品名称</th>
<th>销售额</th>
<th>销售成本</th>
<th>提成</th>
<th>运费</th>
<th>税金</th>
<th>上交金额</th>
<th>利润</th>
<th>明细</th>
</thead>
<c:if test="${!empty products}">
<c:forEach items="${products}" var="pro">
<tr>
<td>${pro["productid"]}</td>
<td>${pro["pname"]}</td>
<td>${pro["totalPrice"]}</td>
<td>${pro["cost"]}</td>
<td>${pro["totalPayment"]}</td>
<td>${pro["totalFreight"]}</td>
<td>${pro["totalTax"]}</td>
<td>${pro["sjPrice"]}</td>
<td>${pro["totalMargin"]}</td>
<td><a href="/report?_method=orderProductDetail&id=${pro['productid']}&timeFrom=${s.timeFrom}&timeTo=${s.timeTo}" target="_blank">明细</a></td>
</tr>
</c:forEach>
</c:if>
</table>
</div>
</div>

</body>
</html>
